import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

const router = new Router({
  mode: "hash",
  routes: [
    {
      path: "/",
      name: "",
      component: () => import("../components/Home"),
      meta: {
        keepAlive: false
      }
    },
    {
      path: "/Home",
      name: "home",
      component: () => import("../components/Home"),
      meta: {
        keepAlive: false
      }
    },
    {
      path: "/Login",
      name: "postdetail",
      component: () => import("../components/Login"),
      meta: {
        keepAlive: false
      }
    },
    {
      path: "/User",
      name: "reply",
      component: () => import("../components/User"),
      meta: {
        keepAlive: false
      }
    },
    {
      path: "/Record_infor",
      component: () => import("../components/Record_infor")
    },
    { path: "/Mydeclare", component: () => import("../components/Mydeclare") },
    {
      path: "/Mydeclare1/:type",
      component: () => import("../components/Mydeclare1"),
      props: true
    },
    {
      path: "/Mydeclare1/MainfestDetail/:voyNo",
      component: () => import("../components/Mydeclare_mainfestDetail"),
      props: true
    },
    {
      path: "/Mydeclare1/GoodDetail/:seqNo",
      component: () => import("../components/Mydeclare_goodsdetail"),
      props: true
    },
    {
      path: "/About",
      name: "about",
      component: () => import("../components/About")
    },
    { path: "/News", component: () => import("../components/News") },
    {
      path: "/News_detail",
      component: () => import("../components/News_detail")
    },
    {
      path: "/Question_detail",
      component: () => import("../components/Question_detail")
    },
    { path: "/Subscribe", component: () => import("../components/Subscribe") },
    { path: "/Service", component: () => import("../components/Service") },
    { path: "/Question", component: () => import("../components/Question") },
    { path: "/Check", component: () => import("../components/Check") },
    {
      path: "/Check_good_declare",
      component: () => import("../components/Check_good_declare")
    },
    {
      path: "/Check_good_information",
      component: () => import("../components/Check_good_information")
    },
    {
      path: "/Check_good_dynamic",
      component: () => import("../components/Check_good_dynamic")
    },
    {
      path: "/Check_inspection",
      component: () => import("../components/Check_inspection")
    },
    {
      path: "/Check_manifest",
      component: () => import("../components/Check_manifest")
    },
    {
      path: "/Check_inspection_1",
      component: () => import("../components/Check_inspection_1")
    },
    {
      path: "/Check_good_declare_1",
      component: () => import("../components/Check_good_declare_1")
    },
    {
      path: "/Check_good_information_1",
      component: () => import("../components/Check_good_information_1")
    },
    {
      path: "/Check_good_dynamic_1",
      component: () => import("../components/Check_good_dynamic_1")
    },
    {
      path: "/Check_manifest_1",
      component: () => import("../components/Check_manifest_1")
    },
    { path: "/Register", component: () => import("../components/Register") }
  ]
});

export default router;
